// sku  Sku管理模块
import request from "@/utils/request";

// SKU列表的接口     /admin/product/list/{page}/{limit}      get
export const reqSkuList = (page,limit) => {
    return request({
        url:`/admin/product/list/${page}/${limit}`,
        method:'get'
    })
}

// 商品下架     /admin/product/cancelSale/{skuId}       get
export const reqCancelSale = (skuId) => {
    return request({
        url:`/admin/product/cancelSale/${skuId}`,
        method:'get'
    })
}

// 商品上架     /admin/product/onSale/{skuId}       get
export const reqOnSale = (skuId) => {
    return request({
        url:`/admin/product/onSale/${skuId}`,
        method:'get'
    })
}

// 查看SKU详情接口        /admin/product/getSkuById/{skuId}       get
export const reqGetSkuById = (skuId) => {
    return request({
        url:`/admin/product/getSkuById/${skuId}`,
        method:'get'
    })
}


